package com.alibaba.algo.domain.user;

import com.alibaba.algo.core.base.BaseDomain;
import com.alibaba.algo.dao.user.SysCurrentOrgMapper;
import com.alibaba.algo.entity.user.SysCurrentOrg;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


/**
 * 类SysCurrentOrg.java的实现描述：当前操作组织/部门记录表Domain
 *
 * @author songwenwei 2021-12-20 16:00:46
*/
@Component
public class SysCurrentOrgDomain extends BaseDomain<SysCurrentOrg> {

    @Resource
    private SysCurrentOrgMapper sysCurrentOrgMapper;

    public SysCurrentOrg getByUserId(Long userId) {
        return sysCurrentOrgMapper.getByUserId(userId);
    }
}
